package com.frejoys.common.vo.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class UserVo {

    @Schema(type = "Long", name = "userId", description = "用户id", required = true, defaultValue = "347634044899328")
    private Long userId;

    @Schema(type = "String", name = "nickname", description = "昵称", required = true, defaultValue = "马小贱")
    private String nickname;

    // 头像
    @Schema(type = "String", name = "avatar", description = "头像", required = true, defaultValue = "avatar.png")
    private String avatar;

    // 带域名完整头像
    @Schema(type = "String", name = "avatarUrl", description = "带域名完整头像", required = true, defaultValue = "http://avatar.png")
    private String avatarUrl;

    @Schema(type = "String", name = "countryCode", description = "电话区号", required = true, defaultValue = "86")
    private String countryCode;

    @Schema(type = "String", name = "phone", description = "电话", required = true, defaultValue = "18888888888")
    private String phone;

    @Schema(type = "String", name = "role", description = "角色：0普通用户，1达人，2代理人，4商家", required = true, defaultValue = "0")
    private Integer role;

    @Schema(type = "String", name = "nickname", description = "创建时间", required = true, defaultValue = "1700914151")
    private Integer createTime;

    @Schema(type = "String", name = "nickname", description = "最后登录时间", required = true, defaultValue = "1700914151")
    private Integer lastLoginTime;

    @Schema(type = "String", name = "nickname", description = "是否允许登录：0注销，1正常", required = true, defaultValue = "0")
    private Integer status;

}
